export interface ResponseDate {
    message: string
    ok: boolean
    code: number
}

// 分类的ts类型
export interface CategoryObj {
    id: number | string
    name: string
    category1Id?: number //可选项
    category2Id?: number //可选项
}

// 相应的返回的数据接口的类型
export interface CategoryRespnse extends ResponseDate {
    data: CategoryObj[]
}

// 属性与属性值的ts
export interface AttrValue {
    id?: number
    valueName: string
    attrId?: number,
    flag?:boolean
}

// 存储每一个属性值的数组类型
export type AttrValueList = AttrValue[]

// 属性对象
export interface Attr {
    id?: number
    attrName: string
    categoryId: number | string
    categoryLevel: number
    attrValueList: AttrValueList
}

// 存储每一个属性对象的数组ts类型
export type AttrList = Attr[]

// 属性接口返回的类型
export interface AttrResponseData extends ResponseDate {
    data: Attr[]
}

export interface DelResponse {
    message: string
    ok: boolean
    code: number
    data: any
}
